home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 7356 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.2 KB  |  38 lines

  1. Path: comma.rhein.de!serpens!not-for-mail
  2. From: mlelstv@serpens.rhein.de (Michael van Elst)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: BitMap problem
  5. Date: 15 Apr 1996 09:21:19 +0200
  6. Organization: dis-
  7. Message-ID: <4kstdf$okn@serpens.rhein.de>
  8. References: <4kfesg$sqe@sinsen.sn.no> <1996Apr10.104208.28803@imada.ou.dk>         <4kgqs9$clr@serpens.rhein.de> <1996Apr11.153514.2002@imada.ou.dk>     <4kjiim$lhd@serpens.rhein.de> <632.6675T1277T900@cs.ruu.nl> <4kntq5$78q@serpens.rhein.de> <1158.6678T1403T2778@cs.ruu.nl>
  9. NNTP-Posting-Host: serpens.rhein.de
  10.  
  11. wsldanke@cs.ruu.nl (Wessel Dankers) writes:
  12.  
  13. >> A cleaner method is to clone the windows RastPort and modify the copy.
  14.  
  15. >You mean with ClipBlit()? Not really the fastest solution on earth, is it?
  16.  
  17. No. Clone the RastPort structure. I.e.:
  18.  
  19. struct RastPort RP;
  20.  
  21. LockLayerRom(win->RPort->Layer);
  22. RP = *win->RPort;
  23. UnlockLayerRom(win->RPort->Layer);
  24.  
  25. RP.TmpRas = mytmpras;
  26. ...
  27.  
  28. The cloned RastPort refers to the same layer automatically.
  29.  
  30. However, this has nothing to do with your problem.
  31.  
  32. Regards,
  33. -- 
  34.                                 Michael van Elst
  35.  
  36. Internet: mlelstv@serpens.rhein.de
  37.                                 "A potential Snark may lurk in every tree."
  38.